package com.yuanfengPlus.purchase.dao;

import com.yuanfengPlus.purchase.entity.PurchaseReturn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IPurchaseReturnDao {
    //    条件查询
    List<PurchaseReturn> queryPurchaseReturn(Map<String, Object> params);

    //    新增采购订单
    int addPurchaseReturn(PurchaseReturn purchaseReturn);

    //    查看单条采购订单
    PurchaseReturn queryPurchaseReturnById(String purchase_return_id);

    //    修改单条采购订单
    int updatePurchaseReturnById(PurchaseReturn purchaseReturn);

    //    删除单条采购订单
    int deletePurchaseReturn(@Param("purchase_return_id") String purchase_return_id);

    //    单条审核通过采购订单
    int updatePurchaseReturnAgree(@Param("purchase_return_id") String purchase_return_id);

    //    单条审核拒绝采购订单
    int updatePurchaseReturnRefuse(@Param("purchase_return_id") String purchase_return_id);
}
